﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">

  <class name="Empresa" table="common_Empresa">
        <id name="Identity" column="EmpresaId"  type="guid">
          <generator class="guid.comb"/>
        </id>

    <property name="Codigo"         column="Codigo"       type="String" not-null="false"/>
    <property name="Ruc"            column="Ruc"          type="String" length="50" />
    <property name="RazonSocial"    column="RazonSocial"  type="String" length="50" />    
    <property name="Logo"           column="Logo"         type="String" length="50" />    
    <property name="EstaActivo"   column="EstaActivo" type="bool"  />
    
  </class>
</hibernate-mapping>
